package com.tele.service.imps;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tele.domain.Nic;
import com.tele.mapper.NicMapper;
import com.tele.service.ints.NicService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NicServiceImp extends ServiceImpl<NicMapper, Nic> implements NicService {

    @Override
    public List<Nic> getAllNic() {
        return baseMapper.selectList(null);
    }

    @Override
    public int updateNic(Nic nic) {
        return baseMapper.updateById(nic);
    }

    @Override
    public int insertNic(Nic nic) {
        return baseMapper.insert(nic);
    }

    @Override
    public int delNic(Nic nic) {
        return baseMapper.deleteById(nic);
    }

}
